<script setup>
</script>

<template>
  <router-view />
  <div class="loading" v-show="$store.state.loading">
    <a-spin></a-spin>
  </div>
</template>

<style>
html,
body,
#app {
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}
.loading {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2;
}
</style>
